package com.lunar.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table(name = "PostInfo")
public class PostInfo {
    @Id
    @Column(name = "tid")
    private int tid;
    @Column(name = "titleContent")
    private String titleContent;
    @Column(name = "pubAuthor")
    private String pubAuthor;
    @Column(name = "topFlag")
    private String topFlag;
    @Column(name = "pubTime")
    private Date pubTime;
    @Column(name = "msgContent")
    private String msgContent;
    @Column(name = "pubId")
    private int pubId;
    @Transient
    @Column(name = "publisherName")
    private String publisherName;
}
